package com.bootdo.system.domain;

import java.io.Serializable;
import java.math.BigDecimal;


/**
 * 
 * 
 * @author chglee
 * @email 1992lcg@163.com
 * @date 2021-02-04 11:46:52
 */

public class JiaoyicelueDO implements Serializable {
	private static final long serialVersionUID = 1L;


	
	//交易策略id
	private Long id;
	//用户id
	private Long userid;
	//币种id
	private Integer bizhongid;
	//持仓金额
	private BigDecimal chicangjine;
	//持仓均价
	private BigDecimal chicangjunjia;
	//补仓次数
	private Integer bucangcishu;
	//持仓数量
	private BigDecimal chicangshuliang;
	//涨幅
	private BigDecimal zhangfu;
	//首单额度
	private BigDecimal firstamount;
	//倍投上限=做单数量
	private Integer beitoushangxian;
	//止盈比例
	private BigDecimal zhiyingbili;
	//止盈回调
	private BigDecimal zhiyinghuidiao;
	//补仓跌幅
	private BigDecimal bucangdiefu;
	//补仓回调
	private BigDecimal bucanghuidiao;
	//循环策略
	private Integer xunhuantype;
	//策略状态
	private Integer celuestatus;

	private String bizhongids;


	private Integer pricestatus;

	private BigDecimal close;

	private BigDecimal low;

	private Integer nowbuchangcishu;


	private BigDecimal buyhigh;

	private BigDecimal buylow;

	private long[] ids;

	public long[] getIds() {
		return ids;
	}

	public void setIds(long[] ids) {
		this.ids = ids;
	}

	public BigDecimal getBuyhigh() {
		return buyhigh;
	}

	public void setBuyhigh(BigDecimal buyhigh) {
		this.buyhigh = buyhigh;
	}

	public BigDecimal getBuylow() {
		return buylow;
	}

	public void setBuylow(BigDecimal buylow) {
		this.buylow = buylow;
	}

	public Integer getNowbuchangcishu() {
		return nowbuchangcishu;
	}

	public void setNowbuchangcishu(Integer nowbuchangcishu) {
		this.nowbuchangcishu = nowbuchangcishu;
	}

	public Integer getPricestatus() {
		return pricestatus;
	}

	public void setPricestatus(Integer pricestatus) {
		this.pricestatus = pricestatus;
	}

	public BigDecimal getClose() {
		return close;
	}

	public void setClose(BigDecimal close) {
		this.close = close;
	}

	public BigDecimal getLow() {
		return low;
	}

	public void setLow(BigDecimal low) {
		this.low = low;
	}

	public String getBizhongids() {
		return bizhongids;
	}

	public void setBizhongids(String bizhongids) {
		this.bizhongids = bizhongids;
	}

	/**
	 * 设置：交易策略id
	 */
	public void setId(Long id) {
		this.id = id;
	}
	/**
	 * 获取：交易策略id
	 */
	public Long getId() {
		return id;
	}
	/**
	 * 设置：用户id
	 */
	public void setUserid(Long userid) {
		this.userid = userid;
	}
	/**
	 * 获取：用户id
	 */
	public Long getUserid() {
		return userid;
	}
	/**
	 * 设置：币种id
	 */
	public void setBizhongid(Integer bizhongid) {
		this.bizhongid = bizhongid;
	}
	/**
	 * 获取：币种id
	 */
	public Integer getBizhongid() {
		return bizhongid;
	}
	/**
	 * 设置：持仓金额
	 */
	public void setChicangjine(BigDecimal chicangjine) {
		this.chicangjine = chicangjine;
	}
	/**
	 * 获取：持仓金额
	 */
	public BigDecimal getChicangjine() {
		return chicangjine;
	}
	/**
	 * 设置：持仓均价
	 */
	public void setChicangjunjia(BigDecimal chicangjunjia) {
		this.chicangjunjia = chicangjunjia;
	}
	/**
	 * 获取：持仓均价
	 */
	public BigDecimal getChicangjunjia() {
		return chicangjunjia;
	}
	/**
	 * 设置：补仓次数
	 */
	public void setBucangcishu(Integer bucangcishu) {
		this.bucangcishu = bucangcishu;
	}
	/**
	 * 获取：补仓次数
	 */
	public Integer getBucangcishu() {
		return bucangcishu;
	}
	/**
	 * 设置：持仓数量
	 */
	public void setChicangshuliang(BigDecimal chicangshuliang) {
		this.chicangshuliang = chicangshuliang;
	}
	/**
	 * 获取：持仓数量
	 */
	public BigDecimal getChicangshuliang() {
		return chicangshuliang;
	}
	/**
	 * 设置：涨幅
	 */
	public void setZhangfu(BigDecimal zhangfu) {
		this.zhangfu = zhangfu;
	}
	/**
	 * 获取：涨幅
	 */
	public BigDecimal getZhangfu() {
		return zhangfu;
	}
	/**
	 * 设置：首单额度
	 */
	public void setFirstamount(BigDecimal firstamount) {
		this.firstamount = firstamount;
	}
	/**
	 * 获取：首单额度
	 */
	public BigDecimal getFirstamount() {
		return firstamount;
	}
	/**
	 * 设置：倍投上限
	 */
	public void setBeitoushangxian(Integer beitoushangxian) {
		this.beitoushangxian = beitoushangxian;
	}
	/**
	 * 获取：倍投上限
	 */
	public Integer getBeitoushangxian() {
		return beitoushangxian;
	}
	/**
	 * 设置：止盈比例
	 */
	public void setZhiyingbili(BigDecimal zhiyingbili) {
		this.zhiyingbili = zhiyingbili;
	}
	/**
	 * 获取：止盈比例
	 */
	public BigDecimal getZhiyingbili() {
		return zhiyingbili;
	}
	/**
	 * 设置：止盈回调
	 */
	public void setZhiyinghuidiao(BigDecimal zhiyinghuidiao) {
		this.zhiyinghuidiao = zhiyinghuidiao;
	}
	/**
	 * 获取：止盈回调
	 */
	public BigDecimal getZhiyinghuidiao() {
		return zhiyinghuidiao;
	}
	/**
	 * 设置：补仓跌幅
	 */
	public void setBucangdiefu(BigDecimal bucangdiefu) {
		this.bucangdiefu = bucangdiefu;
	}
	/**
	 * 获取：补仓跌幅
	 */
	public BigDecimal getBucangdiefu() {
		return bucangdiefu;
	}
	/**
	 * 设置：补仓回调
	 */
	public void setBucanghuidiao(BigDecimal bucanghuidiao) {
		this.bucanghuidiao = bucanghuidiao;
	}
	/**
	 * 获取：补仓回调
	 */
	public BigDecimal getBucanghuidiao() {
		return bucanghuidiao;
	}
	/**
	 * 设置：循环策略
	 */
	public void setXunhuantype(Integer xunhuantype) {
		this.xunhuantype = xunhuantype;
	}
	/**
	 * 获取：循环策略
	 */
	public Integer getXunhuantype() {
		return xunhuantype;
	}
	/**
	 * 设置：策略状态
	 */
	public void setCeluestatus(Integer celuestatus) {
		this.celuestatus = celuestatus;
	}
	/**
	 * 获取：策略状态
	 */
	public Integer getCeluestatus() {
		return celuestatus;
	}


	@Override
	public String toString() {
		return "JiaoyicelueDO{" +
				"id=" + id +
				", userid=" + userid +
				", bizhongid=" + bizhongid +
				", chicangjine=" + chicangjine +
				", chicangjunjia=" + chicangjunjia +
				", bucangcishu=" + bucangcishu +
				", chicangshuliang=" + chicangshuliang +
				", zhangfu=" + zhangfu +
				", firstamount=" + firstamount +
				", beitoushangxian=" + beitoushangxian +
				", zhiyingbili=" + zhiyingbili +
				", zhiyinghuidiao=" + zhiyinghuidiao +
				", bucangdiefu=" + bucangdiefu +
				", bucanghuidiao=" + bucanghuidiao +
				", xunhuantype=" + xunhuantype +
				", celuestatus=" + celuestatus +
				'}';
	}



	public String getChicangjinevo(){

		return chicangjine.stripTrailingZeros().toPlainString();
	}

	public String getchicangjunjiavo(){

		return chicangjunjia.stripTrailingZeros().toPlainString();
	}

	public String getchicangshuliangvo(){

		return chicangshuliang.stripTrailingZeros().toPlainString();
	}

	public String getzhangfuvo(){

		return zhangfu.multiply(new BigDecimal(100)).stripTrailingZeros().toPlainString()+"%";
	}

	public String getfirstamountvo(){

		return firstamount.stripTrailingZeros().toPlainString();
	}

	public String getzhiyingbilivo(){

		return zhiyingbili.multiply(new BigDecimal(100)).stripTrailingZeros().toPlainString()+"%";
	}

	public String getbucangdiefuvo(){

		return bucangdiefu.multiply(new BigDecimal(100)).stripTrailingZeros().toPlainString()+"%";
	}

	public String getzhiyinghuidiaovo(){

		return zhiyinghuidiao.multiply(new BigDecimal(100)).stripTrailingZeros().toPlainString()+"%";
	}

	public String getbucanghuidiaovo(){

		return bucanghuidiao.multiply(new BigDecimal(100)).stripTrailingZeros().toPlainString()+"%";
	}



}
